//
//  PEApplicationModel.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/8/9.
//

#import "RHApplicationDetailModel.h"

@implementation RHApplicationDetailModel
- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic
{
    if([dic[@"licenseUrl"]isKindOfClass:[NSString class]]){
        _licenseUrl = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"licenseUrl"]];
    }
    if([dic[@"legalPersonFile"]isKindOfClass:[NSString class]]){
        _legalPersonFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"legalPersonFile"]];
    }
    if([dic[@"certificationFile"]isKindOfClass:[NSString class]]){
        _certificationFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"certificationFile"]];
    }
    if([dic[@"financeFile"]isKindOfClass:[NSString class]]){
        _financeFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"financeFile"]];
    }
    if([dic[@"marketingFile"]isKindOfClass:[NSString class]]){
        _marketingFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"marketingFile"]];
    }
    if([dic[@"otherFile"]isKindOfClass:[NSString class]]){
        _otherFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"otherFile"]];
    }
    if([dic[@"planFile"]isKindOfClass:[NSString class]]){
        _planFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"planFile"]];
    }
    if([dic[@"siteFile"]isKindOfClass:[NSString class]]){
        _siteFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"siteFile"]];
    }
    if([dic[@"teamFile"]isKindOfClass:[NSString class]]){
        _teamFile = [NSArray yy_modelArrayWithClass:[RHlisence class] json:dic[@"teamFile"]];
    }
    return YES;
}
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper
{
    return @{@"audit_id":@"id"};
}
@end
